import Vue from 'vue';
import {
  Button,
  Message,
  Loading,
  Icon,
  Input,
  Alert,
  MessageBox,
  Popover,
  Switch,
  Tree,
  Image,
  Dialog,
  Form,
  FormItem,
  Select,
  Option,
  Upload,
  Pagination,
  Collapse,
  CollapseItem,
  Slider
} from 'element-ui';

Vue.use(Button);
Vue.use(Input);
Vue.use(Icon);
Vue.use(Alert);
Vue.use(Popover);
Vue.use(Switch);
Vue.use(Image);
Vue.use(Tree);
Vue.use(Dialog);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Select);
Vue.use(Option);
Vue.use(Upload);
Vue.use(Pagination);
Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(Slider);
Vue.use(Loading.directive);

Vue.prototype.$ELEMENT = { size: 'small', zIndex: 3000 };
Vue.prototype.$loading = Loading.service;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$message = Message;
